<template>
    <div>
        <!-- 下面这个没渲染出来：
            报错：Property or method "msg" is not defined 
            on the instance but referenced during render.
            但是school的就渲染出来了
        -->
        <h1>{{msg}}</h1>
        <h3>学生姓名：{{name}}</h3>
        <h3>学生年龄：{{age}}</h3>
        <button @click="mix()">点我弹窗mixin里面的东西</button>
    </div>
</template>

<script>
    // import { mixin1, mixin2 } from '../mixin'

    export default {
        name: 'student',
        data() {
            return {
                name: 'huihui',
                age: 18
            }
        },
        // mixins: {
        //     mixin1,
        //     mixin2
        // }
    }
</script>